Skip to content

Conversation

witalloliveira
Copy link
Contributor

@witalloliveira witalloliveira commented Aug 5, 2025

What

This pull request makes a minor update to the cleanup-resources.yaml hook template by changing the serviceAccount used for the cleanup job. The new service account, runtime-cleanup, is likely more appropriate for the job's permissions and responsibilities.

  • Changed the serviceAccount in the charts/gitops-runtime/templates/hooks/pre-uninstall/cleanup-resources.yaml file from argocd-application-controller to runtime-cleanup to better align with the job's purpose.

Why

Error creating: pods "cleanup-runtime-resources-" is forbidden: error looking up service account codefresh-gitops/argocd-application-controller: serviceaccount "argocd-application-controller" not found 

codefresh-gitops mentioned in the error message above refers to a namespace.

Notes

Use case: leveraging the gitops-runtime chart for the deployment of argo-rollouts components within Managed Clusters. In this context, I disable nearly all Codefresh GitOps Runtime components in the values.yaml (including the argo-cd dependency, which is the reason the Argo Application Controller is absent) to focus exclusively on the argo-rollouts components (Argo Rollouts and its Event Reporter) on Managed Clusters connected to the Runtime.

@witalloliveira witalloliveira requested a review from a team as a code owner August 5, 2025 01:02
@witalloliveira
Copy link
Contributor Author

FYI @francisco-cocozza

@witalloliveira
Copy link
Contributor Author

/e2e

@witalloliveira
Copy link
Contributor Author

@ATGardner @scme0 Would you mind looking into why the CI workflow didn't succeed? I really appreciate it in advance.

@ATGardner
Copy link
Contributor

apologies for the late response @witalloliveira
i rebased your branch, but i think ci fails because the branch is on your fork. i cherry-picked your commit into our own branch, and created a new pr

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants